import request from '@/utils/request'

const locationcategoryApi = {

  indexRecord: function(params) {
    return request({
      url: '/admin/locationcategory',
      method: 'get',
      params: params
    })
  },
  storeRecord: function(params) {
    return request({
      url: '/admin/locationcategory',
      method: 'post',
      params
    })
  },

  createRecord: function() {
    return request({
      url: '/admin/locationcategory/create',
      method: 'get',
      params: {}
    })
  },

  showRecord: function(id) {
    return request({
      url: '/admin/locationcategory/' + id,
      method: 'get',
      params: {}
    })
  },

  editRecord: function(id) {
    return request({
      url: '/admin/locationcategory/' + id + '/edit',
      method: 'get',
      params: {}
    })
  },

  updateRecord: function(id, params) {
    return request({
      url: '/admin/locationcategory/' + id,
      method: 'patch',
      params
    })
  },

  destroyRecord: function(id) {
    return request({
      url: '/admin/locationcategory/' + id,
      method: 'delete',
      params: {}
    })
  },

  mulDestroyRecord: function(data) {
    return request({
      url: '/admin/locationcategory/0',
      method: 'delete',
      data
    })
  },
}

export default locationcategoryApi
